import * as ActionTypes from './ActionsTypes.js';

let _id = 0;

export const add = (text)=>{
    return {
        type:ActionTypes.TODO_ADD,
        text:text,
        id:_id++,
        data:{}
    }
}
export const del = (text,id)=>{
    return {
        type:ActionTypes.TODO_DELETE,
        text:text,
        id:id
    }
}
